<template>
  <!-- 我的 -->
  <view class="container">
    <cunstom_navigation_bar :title="'提现'" :tapEvent="goback" :propStyles="propStyles"></cunstom_navigation_bar>
    <view class="contentBox">
      <view class="topPart">
        <view class="line1">
          <image class="wallet" src="https://visionmpapi.jiuerjindi.com/upload/mp/cookSide/wallet.png"></image>
          <text>可提现金额（元）</text>
        </view>
        <view class="line2">
          <span class="sign">￥</span>
          <span class="num">524.10</span>
        </view>
        <view class="line3">
          <view>最低提现金额：100元</view>
          <view>已累计提现：524.10</view>
        </view>
      </view>

      <view class="formPart">
        <!-- <view>
          <span>*</span>
          <view>真实姓名</view>
          <view>
            <uni-easyinput class="uni-mt-5"   clearable v-model=""
            placeholder="真实姓名" @iconClick="iconClick" @change="iconClick"></uni-easyinput>
          </view>
        </view> -->
        <uni-forms ref="form1" :modelValue="formData" :rules="rules1">
          <uni-forms-item label="真实姓名" name="name" required="true" label-width="80">
            <uni-easyinput type="text" v-model="formData.name" placeholder="真实姓名" />
          </uni-forms-item>
          <uni-forms-item label="手机号码" name="phone" required="true" label-width="80">
            <uni-easyinput type="text" v-model="formData.phone" placeholder="本人实名过的手机" />
          </uni-forms-item>
          <uni-forms-item label="提现金额" name="num" required="true" label-width="80">
            <uni-easyinput type="text" v-model="formData.num" placeholder="0.0" />
          </uni-forms-item>
          <uni-forms-item label="身份证号" name="id" required="true" label-width="80">
            <uni-easyinput type="text" v-model="formData.id" placeholder="身份证号" />
          </uni-forms-item>
          <uni-forms-item label="银行卡号" name="cardNumber" required="true" label-width="80">
            <uni-easyinput type="text" v-model="formData.cardNumber" placeholder="银行卡号" />
          </uni-forms-item>
          <uni-forms-item label="开户行名称" name="bankName" required="true" label-width="80">
            <uni-easyinput type="text" v-model="formData.bankName" placeholder="开户行名称" />
          </uni-forms-item>
          </uni-forms>
      </view>
      <view class="explain">
        <view class="head">提现说明</view>
        <view class="text">1、提现手续费由第三方官方收益</view>
        <view class="text">2、提现信息一旦提交无法修改，如需修改，请联系管理员</view>
        <view class="text">3、由于信息填写错误，导致提现失败的，后果自行承担</view>

      </view>
      <view class="btnBox">
        <view class="button" @tap="showPopup">提现</view>
      </view>


    </view>
    <view>
			<!-- 提示窗示例 -->
			<uni-popup ref="alertDialog" type="dialog">
				<uni-popup-dialog :type="msgType" cancelText="取消" confirmText="我同意" title="提示" content="提现需要填写必要的开户信息用于核对您的收款账户信息，本平台承诺您本次填写的信息仅用于审核使用，审核之后不保留相关的信息" @confirm="dialogConfirm"
					@close="dialogClose"></uni-popup-dialog>
			</uni-popup>
		</view>
    <view>
			<!-- 提示窗示例 -->
			<uni-popup ref="alertDialogBank" type="dialog">
				<uni-popup-dialog :type="msgType" cancelText="取消" confirmText="确定" title="提示" content="请确认您的账户号以及开户名称，以及手机号是否正确？" @confirm="dialogConfirm"
					@close="dialogClose"></uni-popup-dialog>
			</uni-popup>
		</view>

  </view>


  </view>
</template>

<script>
  const api = require("@/utils/api.js");
  const util = require("@/utils/util.js");
  const app = getApp();


  export default {
    data() {
      return {
        title:'提示',
        showAbsoluteBox: false,
        couponInfo: {},// 优惠券信息
        picData: [],
        codeId: '',
        openId: '',
        formData: {
          name: "",
          phone: '',
          num: "",
          id: "",
          cardNumber: "",
          bankName: "",
        },

        statusBarHeight: 20,
        navBarHeight: 45,
        windowWidth: 375,
        hasLogin: false,
        selectedIndex: 0,


        imgUrl: '',
        productData: [],
        queryParams: {
          "modulesId": '', //模块id
          "mallProductName": '', //商品名称
          "pageNum": 1, //页数
          "pageSize": 200 //每页数量
        },
        propStyles: {
          txtColor: '#333333',
          bgColor: '#F4F4F4',

          iconSrc: "black",


        }

      };
    },

    methods: {
      goback() {

        uni.navigateBack();
      },
      showTip() {
        this.showAbsoluteBox = true;
        setTimeout(() => {
          this.showAbsoluteBox = false;
        }, 3000)
      },
      showPopup() {
        this.$refs.alertDialog.open()
      },



    },



    mounted() {


    },
    created() {
      
    },
    onLoad: function (option) {





      this.imgUrl = process.env.VUE_APP_BASE_URL + '/stage-api/file/statics'





    },
    onUnload() {

    },
    onShow: function () {
      uni.hideTabBar()

    },

  };
</script>
<style lang="scss">
  page {
    height: 100vh;
    overflow: auto;
    background-color: #F4F4F4 !important;
  }
</style>
<style lang="scss" scoped>
  page {
    background-color: #F4F4F4 !important;
  }



  .contentBox {
    /* display: flex;
    padding: 0rpx 30rpx;
    align-items: center;
    flex-direction: column; */
    width: 750rpx;
    display: flex;
    flex-direction: column;
    align-items: center;

    .topPart {
      width: 690rpx;
      height: 326rpx;
      background: linear-gradient(314deg, #FECF01 0%, #FAE174 100%);
      border-radius: 20rpx 20rpx 20rpx 20rpx;
      margin-top: 60rpx;
      padding: 28rpx;

      .line1 {
        display: flex;
        align-items: center;

        .wallet {
          width: 44rpx;
          height: 44rpx;
          margin-right: 22rpx;
        }

        text {
          font-family: OPPOSans, OPPOSans;
          font-weight: 400;
          font-size: 28rpx;
          color: #333333;
        }
      }

      .line2 {
        margin-top: 70rpx;
        width: 100%;
        display: flex;
        justify-content: center;

        .sign {
          font-family: OPPOSans, OPPOSans;
          font-weight: 500;
          font-size: 28rpx;
          color: #333333;
          line-height: 122rpx;
        }

        .num {
          font-family: OPPOSans, OPPOSans;
          font-weight: 500;
          font-size: 72rpx;
          color: #333333;
        }
      }

      .line3 {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;

        view {
          font-family: OPPOSans, OPPOSans;
          font-weight: 400;
          font-size: 28rpx;
          color: #333333;
        }
      }
    }

    .formPart {
      padding: 30rpx;
      width: 750rpx;

      background: #FFFFFF;
      box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.15);
      border-radius: 0rpx 0rpx 0rpx 0rpx;
      margin-top: 24rpx;
    }

    .explain {


      .head {
        margin-top: 48rpx;
        margin-bottom: 48rpx;
        margin-left: 28rpx;
        font-family: OPPOSans, OPPOSans;
        font-weight: 500;
        font-size: 36rpx;
        color: #333333;
      }

      .text {
        font-family: OPPOSans, OPPOSans;
        font-weight: 400;
        font-size: 26rpx;
        color: #333333;
        margin-bottom: 32rpx;
      }
    }

    .btnBox {
      height: 186rpx;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      .button {
        width: 644rpx;
        height: 98rpx;
        line-height: 98rpx;
        background: #FECF01;
        border-radius: 20rpx 20rpx 20rpx 20rpx;
        font-family: Inter, Inter;
        font-weight: 600;
        font-size: 32rpx;
        color: #333333;
        text-align: center;
      }
    }
  }

  /deep/ .uni-button-color {
    color: #333!important;
  }

  /deep/ .uni-dialog-button-text {
    color: rgba(51, 51, 51, 0.6)
  }

  /deep/ .is-input-border {
    height: 92rpx;
    background: #F4F1F4;
    border-radius: 20rpx 20rpx 20rpx 20rpx;
  }

  /deep/ .uni-easyinput__content-input {
    height: 92rpx;
    line-height: 92rpx;
    background: #F4F1F4;
    border-radius: 20rpx 20rpx 20rpx 20rpx;
  }

  /deep/ .uni-forms-item {
    align-items: center;
  }

  /deep/ .uni-forms-item__label text {
    color: rgba(51, 51, 51, 0.80);
    font-size: 32rpx;
  }

  /deep/ .is-required {
    color: #E80300 !important;
    margin-right: 15rpx;
  }
</style>